package polymorphism;

public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("66",5);
        Cat cat=new Cat("咪咪",2);
        fun(dog);
        fun(cat);
    }
    public static void fun(Animal animal){

        animal.eat();
    }
}

